Skip to content

Add pypy-faster-python materials folder - #1007

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/pypy-faster-python-20261205
Dec 5, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/pypy-faster-python-20261205

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds the companion code for the tutorial PyPy: Faster Python With Minimal Effort, built by the written-content maintenance pipeline.

  • script.py: the nested-loop benchmark from "PyPy in Action"
  • startup_overhead.py: the short-running script from "It Only Works Well With Long-Running Programs"
  • reference_cycle.py: the reference cycle example from "Garbage Collection"
  • README.md: setup and usage (standard library only, CPython 3.6 or later plus PyPy)

The files mirror the update draft's code blocks (ruff-formatted, so end_time - start_time gains spaces).

Update draft: https://realpython.com/pbjt/blog/post/2768/change/
Card: https://trello.com/c/p4U0TG9x

Verification: ran every script on CPython 3.15.2 and PyPy 3.12 v8.1.1 (linux64). script.py prints The result is 999800010000 on both (14.22 s vs 0.26 s). ruff@0.14.1 format --check, ruff check, and dircheck.py pass.

🤖 Generated with Claude Code

@realpython-bot
realpython-bot merged commit 60741db into master Dec 5, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/pypy-faster-python-20261205 branch December 5, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant